from django.conf.urls.defaults import patterns, url #, include
from livesociety import settings

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()


urlpatterns = patterns('',
    # Examples:
    # url(r'^$', 'livesociety.views.home', name='home'),
    # url(r'^livesociety/', include('livesociety.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),
    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
    url(r'^/?$', 'actions.views.index'),
    url('^register$', 'actions.views.register'),
    url('^index.html$','actions.views.index'),
    url(r'^login$', 'actions.views.login'),
    url(r'^logout$', 'actions.views.logout'),
    url(r'^static/(?P<path>.*)$', 'django.views.static.serve', {'document_root': settings.MEDIA_ROOT}),
    url(r'^main$', 'logged.views.main'),
    url(r'^sendstatus$', 'logged.views.sendstatus'),
    url(r'^friends$', 'logged.views.friends'),
    url(r'^addfriend$', 'logged.views.addfriend'),
    url(r'^settings$', 'logged.views.settings'),
    url(r'^updatesettings$', 'logged.views.updatesettings'),
    url(r'^media/(?P<path>.*)$', 'django-dms.serve', {'document_root': settings.DMS_ROOT}),
    url(r'^acceptrequest$', 'logged.views.acceptrequest'),
    url(r'^messages$', 'logged.views.messages'),
    url(r'^sendmsg$', 'logged.views.sendmsg'),
    url(r'^(?P<f_id>\d+)/$', 'logged.views.viewuser'),
    url(r'^comment$', 'logged.views.comment'),
    url(r'^setasreaded$', 'logged.views.setasreaded'),  
)

